﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CsharpHttpFileSharePage.MyFileUpload" %>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>http文件分享</title>
    <link rel="stylesheet" href="pc.css" media="screen and (min-width:480px" />
    <link rel="stylesheet" href="mobile.css" media="screen and (max-width:479px" />

</head>
<body style="margin: 5px; font-size: x-large">

    <form id="form1" runat="server">
        <div class="zdsxlarg">
             &nbsp; <a id="idFunclist" href="Default.aspx" target="_self" cssclass="zdsxlarg">刷新此页面</a><br />
            &nbsp; 请选择要下载的文件：  &nbsp;<br />
            PC:
            <asp:Label runat="server" ID="lblBasePath" ForeColor="Blue" CssClass="zdsxlarg" Style="word-break: break-all"></asp:Label>
            <br />
            <asp:ListBox ID="ListBox1" runat="server" Height="200px" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged"
                Width="90%" CssClass="zdsxlarg"></asp:ListBox>

            <br />
            <br />
            <asp:Button ID="BtnSetDownFileLink" runat="server" Text=" 设置下载链接 " OnClick="BtnSetDownFileLink_Click"  Height="50px" CssClass="zdsxlarg" />
            &nbsp; &nbsp;| &nbsp; 
             <asp:Button ID="BtnDeleteFile1" runat="server" Text=" 删除文件 " OnClick="BtnDeleteFile1_Click"  Height="50px" CssClass="zdsxlarg" />
            <br />
            <p>
                下载链接：
                <asp:HyperLink ID="hypLink1" runat="server" Text="" CssClass="zdsxlarg"></asp:HyperLink>
            </p>

            <asp:Label runat="server" ID="lblMsg0" ForeColor="Red" CssClass="zdsxlarg"></asp:Label>

            <hr />
 
            <p>&nbsp; &nbsp; 请选择要上传的文件：</p>
            <asp:FileUpload ID="aspFileUpload1" runat="server" CssClass="zdsxlarg" />
            <br />
            <br />
            <asp:Button ID="BtnFileUpLoad" runat="server" Text="  上 传  " OnClick="BtnFileUpLoad_Click"  Height="50px" CssClass="zdsxlarg" /><br />
            <br />
            <asp:Label runat="server" ID="lblMsg1" ForeColor="Red" CssClass="zdsxlarg"></asp:Label>
            <br />

        </div>
    </form>
</body>
</html>
